local WindUI = loadstring(game:HttpGet("https://raw.gitcode.com/idklol/RVVZ/raw/main/uilib.lua"))()
local exec_name = identifyexecutor()
function gradient(text, startColor, endColor)
    local result = ""
    local length = #text

    for i = 1, length do
        local t = (i - 1) / math.max(length - 1, 1)
        local r = math.floor((startColor.R + (endColor.R - startColor.R) * t) * 255)
        local g = math.floor((startColor.G + (endColor.G - startColor.G) * t) * 255)
        local b = math.floor((startColor.B + (endColor.B - startColor.B) * t) * 255)

        local char = text:sub(i, i)
        result = result .. "<font color=\"rgb(" .. r ..", " .. g .. ", " .. b .. ")\">" .. char .. "</font>"
    end

    return result
end

local Window = WindUI:CreateWindow({
    Title = "QQ音乐 当前注入器:" .. exec_name,
    Icon = "rbxassetid://136985151182088",
    IconThemed = true,
    Author = "QQ音乐",
    Folder = "QQMusic",
    Size = UDim2.fromOffset(700, 440),
    Transparent = true,
    Theme = "Dark",
    User = {
        Enabled = true,
        },
})

Window:DisableTopbarButtons({
    "Fullscreen",
})

Window:EditOpenButton({
    Title = "QQ音乐",
    Icon = "maximize-2",
    Color = ColorSequence.new({
        ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)),             
        ColorSequenceKeypoint.new(0.1, Color3.fromRGB(255, 30, 30)),          
        ColorSequenceKeypoint.new(0.2, Color3.fromRGB(255, 100, 0)),          
        ColorSequenceKeypoint.new(0.3, Color3.fromRGB(255, 180, 0)),         
        ColorSequenceKeypoint.new(0.4, Color3.fromRGB(0, 255, 50)),          
        ColorSequenceKeypoint.new(0.5, Color3.fromRGB(0, 255, 255)),          
        ColorSequenceKeypoint.new(0.6, Color3.fromRGB(0, 160, 255)),         
        ColorSequenceKeypoint.new(0.7, Color3.fromRGB(0, 95, 255)),           
        ColorSequenceKeypoint.new(0.8, Color3.fromRGB(255, 0, 255)),          
        ColorSequenceKeypoint.new(0.9, Color3.fromRGB(255, 50, 255)),          
        ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 0, 180))              
    })
})

math.randomseed(os.time())
local backgroundImages = {
    "rbxassetid://102092350437192",
    "rbxassetid://116869690430454",
    "rbxassetid://115124173130316",
    "rbxassetid://125309750317441",
    "rbxassetid://136019395235001",
    "rbxassetid://118459512386178",
    "rbxassetid://74627776275393",
    "rbxassetid://81591162393480"
}
Window:SetBackgroundImage(backgroundImages[math.random(1, #backgroundImages)])
Window:SetBackgroundImageTransparency(0.8)

local Tabs = {}

do
    Tabs.Main = Window:Section({
        Title = "主菜单",
        Opened = true,
    })
    Tabs.GTab = Tabs.Main:Tab({ Title = "公告", Icon = "rbxassetid://82585579352338" })
    Tabs.zx = Tabs.Main:Tab({ Title = "杂项", Icon = "rbxassetid://82585579352338" })
    Tabs.sz = Tabs.Main:Tab({ Title = "设置", Icon = "rbxassetid://82585579352338" })
end

Tabs.sz:Section({ Title = "窗口设置", Icon = "app-window-mac" })

local themeValues = {}
for name, _ in pairs(WindUI:GetThemes()) do
    table.insert(themeValues, name)
end

local themeDropdown = Tabs.sz:Dropdown({
    Title = "窗口颜色",
    Multi = false,
    AllowNone = false,
    Value = nil,
    Values = themeValues,
    Callback = function(theme)
        WindUI:SetTheme(theme)
    end
})
themeDropdown:Select(WindUI:GetCurrentTheme())

local ToggleTransparency = Tabs.sz:Toggle({
    Title = "启用窗口透明",
    Callback = function(e)
        Window:ToggleTransparency(e)
    end,
    Value = WindUI:GetTransparency()
})

Tabs.zx:Slider({
    Title = "速度",
    Step = 1,
    Value = {
        Min = 1,
        Max = 300,
        Default = 16
    },
    Callback = function(value)
        if game.Players.LocalPlayer and game.Players.LocalPlayer.Character then
            local humanoid = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
            if humanoid then
                humanoid.WalkSpeed = value
            end
        end
    end
})

Tabs.zx:Slider({
    Title = "跳跃高度",
    Step = 1,
    Value = {
        Min = 1,
        Max = 300,
        Default = 50
    },
    Callback = function(value)
        if game.Players.LocalPlayer and game.Players.LocalPlayer.Character then
            local humanoid = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
            if humanoid then
                humanoid.JumpPower = value
            end
        end
    end
})

Tabs.zx:Button({
    Title = "无绕过普通飞行",
    Desc = "顾名思义飞行",
    Locked = false,
    Callback = function()
    loadstring(game:HttpGet("https://raw.gitcode.com/ezbroxx317/QQScript/raw/main/Flyscript.lua"))()
    end
})

Tabs.zx:Button({
    Title = "Rspy",
    Desc = "抓包工具(不会用别点)",
    Locked = false,
    Callback = function()
    loadstring(game:HttpGet("https://raw.gitcode.com/ezbroxx317/QQScript/raw/main/spy.lua"))()
    end
})

Tabs.zx:Button({
    Title = "Dex",
    Desc = "抓包工具(不会用别点)",
    Locked = false,
    Callback = function()
    loadstring(game:HttpGet("https://raw.gitcode.com/ezbroxx317/QQScript/raw/main/Dex.lua"))()
    end
})

Tabs.zx:Button({
    Title = "InfiniteYield",
    Desc = "老牌更全能的CMD式脚本",
    Locked = false,
    Callback = function()
    loadstring(game:HttpGet("https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source"))()
    end
})

Tabs.GTab:Paragraph({
    Title = "更新内容",
    Desc = "未发布",
    Image = "rbxassetid://136985151182088",
    ImageSize = 42,
})

local thumbnailImages = {
    "rbxassetid://102092350437192",
    "rbxassetid://116869690430454",
    "rbxassetid://115124173130316",
    "rbxassetid://125309750317441",
    "rbxassetid://136019395235001",
    "rbxassetid://118459512386178",
    "rbxassetid://74627776275393",
    "rbxassetid://81591162393480"
}
Tabs.GTab:Paragraph({
    Title = "",
    Thumbnail = thumbnailImages[math.random(1, #thumbnailImages)],
    ThumbnailSize = 150
})

Window:OnDestroy(function()
     WindUI:Notify({
    Title = "QQ音乐",
    Content = "窗口已关闭需要打开窗口请重新执行该脚本。",
    Duration = 3,
    Icon = "cloud-off",
})
end)

Tabs.GTab:Paragraph({
    Title = "",
    Thumbnail = thumbnailImages[math.random(1, #thumbnailImages)],
    ThumbnailSize = 150
})
